//
//  UIColor+Mango.h
//  Mango
//
//  Created by 胡超 on 2018/1/29.
//  Copyright © 2018年 胡超., ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, MGButtonLayoutType) {
    MGButtonLayoutTypeOrigin,
    MGButtonLayoutTypeVImageTitle,
    MGButtonLayoutTypeVTitleImage,
    MGButtonLayoutTypeHImageRight,
};

@interface UIButton (Mango)

- (void)setImageSize:(CGSize)imageSize;

- (void)setLayoutType:(MGButtonLayoutType)type;
- (void)setLayoutType:(MGButtonLayoutType)type imageOffset:(CGSize)imageOffset;
- (void)setLayoutType:(MGButtonLayoutType)type titleOffset:(CGSize)titleOffset;
- (void)setLayoutType:(MGButtonLayoutType)type imageOffset:(CGSize)imageOffset titleOffset:(CGSize)titleOffset;

- (void)setCornerRadius:(CGFloat)cornerRadius insets:(UIEdgeInsets)insets;
- (void)setBorderColor:(UIColor *)borderColor borderWidth:(CGFloat)borderWidth forState:(UIControlState)forState;
- (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)forState;

@end

NS_ASSUME_NONNULL_END
